package com.skyworth.basic.controller;


import com.skyworth.basic.service.TerminalPriceService;
import com.skyworth.basic.entity.TerminalPrice;

import com.skyworth.core.pojo.dto.PageResDTO;
import com.skyworth.core.pojo.dto.ResDTO;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import org.springframework.web.bind.annotation.RestController;
import com.skyworth.authentication.core.controller.AbstractController;

/**
 * <p>
 * 终端售价表 前端控制器
 * </p>
 *
 * @author wuxj
 * @since 2020-02-26
 */
@RestController
@RequestMapping("/terminalPrice")
public class TerminalPriceController extends AbstractController {

    @Resource
    private TerminalPriceService terminalPriceService;

    /**
    * 查询分页数据
    */
    @PostMapping(value = "/list")
    public ResDTO<PageResDTO<List<TerminalPrice>>> findListByPage(@RequestParam(name = "pageNum", defaultValue = "1") int pageNum, @RequestParam(name = "pageSize", defaultValue = "20") int pageSize){
      return null;
    }

    /**
    * 根据id查询
    */
    @PostMapping(value = "/getById")
    public ResDTO<TerminalPrice> getById(@RequestParam("pkid") String pkid){
      return null;
    }

    /**
    * 新增
    */
    @PostMapping(value = "/add")
    public ResDTO<Void> add(@RequestBody TerminalPrice terminalPrice){
      return null;
    }

    /**
    * 删除
    */
    @PostMapping(value = "/del")
    public ResDTO<Void> delete(@RequestParam("ids") List<String> ids){
      return null;
    }

    /**
    * 修改
    */
    @PostMapping(value = "/update")
    public ResDTO<Void> update(@RequestBody TerminalPrice terminalPrice){
      return null;
    }
}
